Release 10.1A: OpenEdge Development:
Basic Development Tools


File-specific events

Table 3–1 describes the events (corresponding to p_event) that are related to file operations.

Table 3–1: File-specific events
Event
Operation
BEFORE-CHECK-SYNTAX 
Called before a Check Syntax. Returning p_ok as FALSE cancels the operation.
BEFORE-CHECK-SYNTAX-PARTIAL 
Called before a Partial Check Syntax. Returning p_ok as FALSE cancels the operation.
BEFORE-CLOSE 
Called before a file is to be closed. Returning p_ok as FALSE cancels the operation.
BEFORE-COMPILE 
Called before a file is to be compiled. Returning p_ok as FALSE cancels the operation.
BEFORE-DEBUG 
Same as BEFORE-RUN, except DEBUG is chosen.
BEFORE-OPEN 
Called before a file is to be opened. Returning p_ok as FALSE cancels the operation.
BEFORE-RUN 
Called before a file is written to disk for a run. Returning p_ok as FALSE cancels the operation.
BEFORE-SAVE 
FALSE before a file is to be saved. Returning p_ok as FALSE cancels the operation.
CHECK-SYNTAX 
Called after a Check Syntax.
CHECK-SYNTAX-PARTIAL 
Called after a Partial Check Syntax.
CLOSE 
Called after a window or buffer is closed.
COMPILE 
Called after a file is compiled.
DEBUG 
Same as RUN, except DEBUG was chosen. Returning p_ok as FALSE cancels the operation.
NEW 
Called after a new window/dialog box is created.
OPEN 
Called after a file is opened.
RUN 
Called after RUN of file ends.
SAVE 
Called after a file is saved.

Some events—for example NEW—cannot be cancelled even if returning FALSE.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095